Optimal. Leaf size=69 \[ -\frac {3 \sqrt [3]{x}}{4}+\frac {x}{2}+\frac {3}{4} \cos \left (\sqrt [3]{x}\right ) \sin \left (\sqrt [3]{x}\right )-\frac {3}{2} x^{2/3} \cos \left (\sqrt [3]{x}\right ) \sin \left (\sqrt [3]{x}\right )+\frac {3}{2} \sqrt [3]{x} \sin ^2\left (\sqrt [3]{x}\right ) \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.03, antiderivative size = 69, normalized size of antiderivative = 1.00, number of steps
used = 5, number of rules used = 5, integrand size = 8, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.625, Rules used = {3442, 3392, 30,
2715, 8} \begin {gather*} -\frac {3}{2} x^{2/3} \sin \left (\sqrt [3]{x}\right ) \cos \left (\sqrt [3]{x}\right )+\frac {x}{2}-\frac {3 \sqrt [3]{x}}{4}+\frac {3}{2} \sqrt [3]{x} \sin ^2\left (\sqrt [3]{x}\right )+\frac {3}{4} \sin \left (\sqrt [3]{x}\right ) \cos \left (\sqrt [3]{x}\right ) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 8
Rule 30
Rule 2715
Rule 3392
Rule 3442
Rubi steps
\begin {align*} \int \sin ^2\left (\sqrt [3]{x}\right ) \, dx &=3 \text {Subst}\left (\int x^2 \sin ^2(x) \, dx,x,\sqrt [3]{x}\right )\\ &=-\frac {3}{2} x^{2/3} \cos \left (\sqrt [3]{x}\right ) \sin \left (\sqrt [3]{x}\right )+\frac {3}{2} \sqrt [3]{x} \sin ^2\left (\sqrt [3]{x}\right )+\frac {3}{2} \text {Subst}\left (\int x^2 \, dx,x,\sqrt [3]{x}\right )-\frac {3}{2} \text {Subst}\left (\int \sin ^2(x) \, dx,x,\sqrt [3]{x}\right )\\ &=\frac {x}{2}+\frac {3}{4} \cos \left (\sqrt [3]{x}\right ) \sin \left (\sqrt [3]{x}\right )-\frac {3}{2} x^{2/3} \cos \left (\sqrt [3]{x}\right ) \sin \left (\sqrt [3]{x}\right )+\frac {3}{2} \sqrt [3]{x} \sin ^2\left (\sqrt [3]{x}\right )-\frac {3}{4} \text {Subst}\left (\int 1 \, dx,x,\sqrt [3]{x}\right )\\ &=-\frac {3 \sqrt [3]{x}}{4}+\frac {x}{2}+\frac {3}{4} \cos \left (\sqrt [3]{x}\right ) \sin \left (\sqrt [3]{x}\right )-\frac {3}{2} x^{2/3} \cos \left (\sqrt [3]{x}\right ) \sin \left (\sqrt [3]{x}\right )+\frac {3}{2} \sqrt [3]{x} \sin ^2\left (\sqrt [3]{x}\right )\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.03, size = 41, normalized size = 0.59 \begin {gather*} \frac {1}{8} \left (4 x-6 \sqrt [3]{x} \cos \left (2 \sqrt [3]{x}\right )+\left (3-6 x^{2/3}\right ) \sin \left (2 \sqrt [3]{x}\right )\right ) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.03, size = 52, normalized size = 0.75
method | result | size |
meijerg | \(\frac {3 x^{\frac {5}{3}} \hypergeom \left (\left [1, \frac {5}{2}\right ], \left [\frac {3}{2}, 2, \frac {7}{2}\right ], -x^{\frac {2}{3}}\right )}{5}\) | \(19\) |
derivativedivides | \(3 x^{\frac {2}{3}} \left (-\frac {\cos \left (x^{\frac {1}{3}}\right ) \sin \left (x^{\frac {1}{3}}\right )}{2}+\frac {x^{\frac {1}{3}}}{2}\right )-\frac {3 x^{\frac {1}{3}} \left (\cos ^{2}\left (x^{\frac {1}{3}}\right )\right )}{2}+\frac {3 \cos \left (x^{\frac {1}{3}}\right ) \sin \left (x^{\frac {1}{3}}\right )}{4}+\frac {3 x^{\frac {1}{3}}}{4}-x\) | \(52\) |
default | \(3 x^{\frac {2}{3}} \left (-\frac {\cos \left (x^{\frac {1}{3}}\right ) \sin \left (x^{\frac {1}{3}}\right )}{2}+\frac {x^{\frac {1}{3}}}{2}\right )-\frac {3 x^{\frac {1}{3}} \left (\cos ^{2}\left (x^{\frac {1}{3}}\right )\right )}{2}+\frac {3 \cos \left (x^{\frac {1}{3}}\right ) \sin \left (x^{\frac {1}{3}}\right )}{4}+\frac {3 x^{\frac {1}{3}}}{4}-x\) | \(52\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A]
time = 0.31, size = 30, normalized size = 0.43 \begin {gather*} -\frac {3}{8} \, {\left (2 \, x^{\frac {2}{3}} - 1\right )} \sin \left (2 \, x^{\frac {1}{3}}\right ) - \frac {3}{4} \, x^{\frac {1}{3}} \cos \left (2 \, x^{\frac {1}{3}}\right ) + \frac {1}{2} \, x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 0.37, size = 37, normalized size = 0.54 \begin {gather*} -\frac {3}{4} \, {\left (2 \, x^{\frac {2}{3}} - 1\right )} \cos \left (x^{\frac {1}{3}}\right ) \sin \left (x^{\frac {1}{3}}\right ) - \frac {3}{2} \, x^{\frac {1}{3}} \cos \left (x^{\frac {1}{3}}\right )^{2} + \frac {1}{2} \, x + \frac {3}{4} \, x^{\frac {1}{3}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [B] Leaf count of result is larger than twice the leaf count of optimal. 379 vs.
\(2 (66) = 132\).
time = 0.52, size = 379, normalized size = 5.49 \begin {gather*} \frac {12 x^{\frac {2}{3}} \tan ^{3}{\left (\frac {\sqrt [3]{x}}{2} \right )}}{4 \tan ^{4}{\left (\frac {\sqrt [3]{x}}{2} \right )} + 8 \tan ^{2}{\left (\frac {\sqrt [3]{x}}{2} \right )} + 4} - \frac {12 x^{\frac {2}{3}} \tan {\left (\frac {\sqrt [3]{x}}{2} \right )}}{4 \tan ^{4}{\left (\frac {\sqrt [3]{x}}{2} \right )} + 8 \tan ^{2}{\left (\frac {\sqrt [3]{x}}{2} \right )} + 4} - \frac {3 \sqrt [3]{x} \tan ^{4}{\left (\frac {\sqrt [3]{x}}{2} \right )}}{4 \tan ^{4}{\left (\frac {\sqrt [3]{x}}{2} \right )} + 8 \tan ^{2}{\left (\frac {\sqrt [3]{x}}{2} \right )} + 4} + \frac {18 \sqrt [3]{x} \tan ^{2}{\left (\frac {\sqrt [3]{x}}{2} \right )}}{4 \tan ^{4}{\left (\frac {\sqrt [3]{x}}{2} \right )} + 8 \tan ^{2}{\left (\frac {\sqrt [3]{x}}{2} \right )} + 4} - \frac {3 \sqrt [3]{x}}{4 \tan ^{4}{\left (\frac {\sqrt [3]{x}}{2} \right )} + 8 \tan ^{2}{\left (\frac {\sqrt [3]{x}}{2} \right )} + 4} + \frac {2 x \tan ^{4}{\left (\frac {\sqrt [3]{x}}{2} \right )}}{4 \tan ^{4}{\left (\frac {\sqrt [3]{x}}{2} \right )} + 8 \tan ^{2}{\left (\frac {\sqrt [3]{x}}{2} \right )} + 4} + \frac {4 x \tan ^{2}{\left (\frac {\sqrt [3]{x}}{2} \right )}}{4 \tan ^{4}{\left (\frac {\sqrt [3]{x}}{2} \right )} + 8 \tan ^{2}{\left (\frac {\sqrt [3]{x}}{2} \right )} + 4} + \frac {2 x}{4 \tan ^{4}{\left (\frac {\sqrt [3]{x}}{2} \right )} + 8 \tan ^{2}{\left (\frac {\sqrt [3]{x}}{2} \right )} + 4} - \frac {6 \tan ^{3}{\left (\frac {\sqrt [3]{x}}{2} \right )}}{4 \tan ^{4}{\left (\frac {\sqrt [3]{x}}{2} \right )} + 8 \tan ^{2}{\left (\frac {\sqrt [3]{x}}{2} \right )} + 4} + \frac {6 \tan {\left (\frac {\sqrt [3]{x}}{2} \right )}}{4 \tan ^{4}{\left (\frac {\sqrt [3]{x}}{2} \right )} + 8 \tan ^{2}{\left (\frac {\sqrt [3]{x}}{2} \right )} + 4} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A]
time = 5.46, size = 30, normalized size = 0.43 \begin {gather*} -\frac {3}{8} \, {\left (2 \, x^{\frac {2}{3}} - 1\right )} \sin \left (2 \, x^{\frac {1}{3}}\right ) - \frac {3}{4} \, x^{\frac {1}{3}} \cos \left (2 \, x^{\frac {1}{3}}\right ) + \frac {1}{2} \, x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 4.77, size = 34, normalized size = 0.49 \begin {gather*} \frac {x}{2}+\frac {3\,\sin \left (2\,x^{1/3}\right )}{8}-\frac {3\,x^{1/3}\,\cos \left (2\,x^{1/3}\right )}{4}-\frac {3\,x^{2/3}\,\sin \left (2\,x^{1/3}\right )}{4} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________